import request from '@/utils/request'
import config from './config'

// 获取代码字典列表
export function getCodeList(codeType, groupId) {
  return request({
    url: config.getCode,
    method: 'get',
    params: {
      codeType,
      groupId
    }
  })
}

// 获取配置字典列表
export function getConfigCodeList(codeType, groupId) {
  return request({
    url: config.getConfig,
    method: 'get',
    params: {
      codeType,
      groupId
    }
  })
}

// 获取码表
export function getSysCodeList(params) {
  return request({
    url: config.getSysCode,
    method: 'get',
    params
  })
}
